import service from "./index";

// 按需导出
// 列表
export function admin(data) {
    return service({
        url: "/admin/admin",
        method: "get",
        params: data
    })
}

// 增加
export function adminadmin(data) {
    return service({
        url: "/admin/admin",
        method: "post",
        data: data
    })
}

// 详情
export function adminadminid(id) {
    return service({
        url: `/admin/admin/ ` + id,
        method: "get",
    })
}

// 修改
export function adminadminup(data) {
    return service({
        url: `/admin/admin`,
        method: "put",
        data: data
    })
}

// 删除
export function admindel(id) {
    return service({
        url: `/admin/admin/` + id,
        method: "DELETE",
    })
}
